<?php

/**
 * Subclass for performing query and update operations on the 'product_category' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ProductCategoryPeer extends BaseProductCategoryPeer
{
  public static function doSelectByLevelNumber($level_number){
    $c = new Criteria();
    $c->add(self::LEVEL_NUMBER,$level_number);
    $c->addAscendingOrderByColumn(self::NAME);
    return self::doSelect($c);
  }
  
  public static function getList($level_number){
  	$categorys = self::doSelectByLevelNumber($level_number);
  	$data = array();
  	foreach($categorys as $category)
  	  $data[$category->getIden()] = $category->getName();
  	return $data;
  }
  
}
